package com.malljelly.study.trans;

import com.google.common.base.Function;
import com.malljelly.study.dao.po.PaymentInfo;
import com.malljelly.study.vo.unionpay.service.UnionPaymentInfoRequestVo;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.springframework.beans.BeanUtils;

import java.sql.Timestamp;

/**
 * Created by 骑着蜗牛去旅行 on 2018/8/14.
 */
public class PaymentInfoVoToPaymentInfoPo implements Function<UnionPaymentInfoRequestVo,PaymentInfo> {
    @Override
    public PaymentInfo apply(@Nullable UnionPaymentInfoRequestVo vo) {

        PaymentInfo po =new PaymentInfo();
        BeanUtils.copyProperties(vo,po);

        return po;
    }


}
